Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 25: Controlling Detail

../ch25/25fig10.gif
Figure 25.10

A dungeon wall with a doorway.

25fig10.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Shape {
    appearance Appearance {
        material Material { diffuseColor 1.0 1.0 1.0 }
        texture ImageTexture { url "stonewal.jpg" }
    }
    geometry IndexedFaceSet {
        coord Coordinate {
            point [
                -5.0 0.0 0.0, -1.5 0.0 0.0,
                -1.5 2.5 0.0,  1.5 2.5 0.0,
                 1.5 0.0 0.0,  5.0 0.0 0.0,
                 5.0 3.5 0.0, -5.0 3.5 0.0,
            ]
        }
        texCoord TextureCoordinate {
            point [
                0.0 0.0,  0.7 0.0,  0.7 0.7,  1.3 0.7,
                1.3 0.0,  2.0 0.0,  2.0 1.0,  0.0 1.0
            ]
        }
        coordIndex [ 0, 1, 2, 3, 4, 5, 6, 7 ]
        convex FALSE
        solid FALSE
    }
}